<?php
namespace Admin\Model;
use Think\Model;
class UserModel extends Model {
	protected $tableName = 'users'; 

	/**
	登录检验。成功返回用户信息，失败返回false
	*/
	public function checkLogin($username,$password){
		$condition['username']=$username;
		$condition['password']=$password;
		$data=M('users')->where($condition)->find();
		return $data;
	}


}



?>